# coding:utf-8
from datetime import datetime

from pydantic import BaseModel, Field


class UserBase(BaseModel):
    username: str
    mobile: str
    email: str
    nickname: str
    avatar: str
    gender: int
    intro: str
    status: int


class UserCreate(UserBase):
    password: str


class UserOutDB(UserBase):
    id: int
    status: int
    createTime: datetime = Field(alias='createTime')
    updateTime: datetime = Field(alias='updateTime')
